package com.jyw.business.ast.mapper;

import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jyw.business.ast.domain.AstConsumableClaim;
import com.jyw.business.ast.domain.dto.web.AstConsumableClaimPageDto;
import com.jyw.business.ast.domain.vo.web.AstConsumableClaimPageVo;
import com.jyw.business.ast.domain.vo.web.AstConsumableClaimVo;
import org.apache.ibatis.annotations.Param;

/**
 * 资产-耗材-耗材申领Mapper接口
 * 
 * @author system
 * @date 2023-10-24
 */
public interface AstConsumableClaimMapper extends BaseMapper<AstConsumableClaim>
{
    /**
     * 查询资产-耗材-耗材申领
     * 
     * @param id 资产-耗材-耗材申领主键
     * @return 资产-耗材-耗材申领
     */
    public AstConsumableClaim selectAstConsumableClaimById(Long id);

    /**
     * 查询资产-耗材-耗材申领列表
     * 
     * @param astConsumableClaim 资产-耗材-耗材申领
     * @return 资产-耗材-耗材申领集合
     */
    public List<AstConsumableClaim> selectAstConsumableClaimList(AstConsumableClaim astConsumableClaim);

    /**
     * 新增资产-耗材-耗材申领
     * 
     * @param astConsumableClaim 资产-耗材-耗材申领
     * @return 结果
     */
    public int insertAstConsumableClaim(AstConsumableClaim astConsumableClaim);

    /**
     * 修改资产-耗材-耗材申领
     * 
     * @param astConsumableClaim 资产-耗材-耗材申领
     * @return 结果
     */
    public int updateAstConsumableClaim(AstConsumableClaim astConsumableClaim);

    /**
     * 删除资产-耗材-耗材申领
     * 
     * @param id 资产-耗材-耗材申领主键
     * @return 结果
     */
    public int deleteAstConsumableClaimById(Long id);

    /**
     * 批量删除资产-耗材-耗材申领
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteAstConsumableClaimByIds(Long[] ids);

    /**
     * 耗材申领记录
     * @param id
     * @return
     */
    List<AstConsumableClaimVo> consumableClaim(@Param("data") Long id);

    /**
     * 耗材申领-分页查询
     * @param pageDto
     * @return
     */
    List<AstConsumableClaimPageVo> claimPage(@Param("data") AstConsumableClaimPageDto pageDto);
}
